.PHONY:all
all: ServerNetCald ClientNetCald

ServerNetCald: TcpServer.cc -ljsoncpp
	g++ -o $@ $^ -g
	
ClientNetCald: TcpClient.cc -ljsoncpp
	g++ -o $@ $^ -g

.PHONY:output
output:
	@mkdir output
	@mkdir -p output/bin
	@mkdir -p output/conf
	@mkdir -p output/log
	@cp ServerNetCald output/bin
	@cp ClientNetCald output/bin
	@cp test.conf output/conf
	@tar czf output.tgz output

.PHONY:clean
clean:
	rm -rf ServerNetCald ClientNetCald output